﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Masters/Form.master" AutoEventWireup="true"
 CodeFile="EvaluateTargetHistory.aspx.cs" Inherits="Modules_Personal_EvaluateTargetHistory" Title="指标评分历史" Theme ="Default" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register TagPrefix="web" TagName="listtitle" Src="~/Shared/UserControls/ListTitle.ascx" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="YYControls" Namespace="YYControls" TagPrefix="yyc" %>


<asp:Content ID="Content1" ContentPlaceHolderID="idScript" Runat="Server">
 <script type="text/javascript">
        function closeForm() {
            window.returnValue="false";
            window.opener=null;
            window.close();
            return false;
        } 
          function sureDelete()
        {
             return confirm("您确认要删除吗?");        
        }     
               
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="idFormMain" Runat="Server">

 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <contenttemplate>       
    
        <div class="search" id="search">
           <%-- <table cellpadding="2" cellspacing="0" class="rtm_shb_b">
                <tr>                 
                    <td style="width: 100px;">
                        <asp:Label runat="server" ID="lblName" Text="名称:"></asp:Label>
                      <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                    </td>                   
                     
                    <td class="rtm_shb_btn" style="white-space: nowrap">
                        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>&nbsp;                      
                    </td>
                </tr>
            </table>--%>
        </div>
        <div class="toolbar" id="toolbar">
         <%--   <h2>
                <web:listtitle ID="Listtitle1" runat="server" Title="考核人信息列表" />
            </h2>  --%>                     
        </div>
        <yyc:SmartGridView ID="gvTargetEvalate" runat="server" AutoGenerateColumns="False"
            AllowSorting="True" OnSorting="gvTargetEvalate_Sorting" OnRowCommand="gvTargetEvalate_RowCommand"
            OnRowDataBound="gvTargetEvalate_RowDataBound" EmptyDataText="没有找到数据!">
           
            <Columns>     
                        <asp:TemplateField HeaderText="操作">
                    <itemtemplate>     
                      <table width="46px" style="text-align: left">                    
                        <tr>
                           
                            <td style="border: 0px solid #fff;">
                    <asp:ImageButton runat="server" CommandName="del" CommandArgument='<%# Eval("ID") %>'  CausesValidation="False"  OnClientClick="return sureDelete();" ImageUrl="~/Images/com/dg_del.gif" ToolTip="删除" ID="ibtnDelete" ></asp:ImageButton>
                      </td>
                       </tr>
                       </table>
                </itemtemplate>
                </asp:TemplateField>
                
                 
               <asp:TemplateField HeaderText="指标名称" SortExpression="Target_ID">
                    <itemtemplate>
                <asp:Label runat="server" Text='<%# Eval("Name")%>'  CssClass="text_overflow"  ID="lblsTarget_ID"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                    <asp:TemplateField HeaderText="分数" >
                    <itemtemplate>
              <asp:Label runat="server" ID="lblScore" Text='<%# Eval("Score") %>' CssClass="text_overflow" ></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
                
                 <asp:TemplateField HeaderText="录入人" >
                    <itemtemplate>
               <asp:Label runat="server" Text='<%# GetUserName(Eval("User_ID"))%>'  CssClass="text_overflow"  ID="lblUser_ID"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
                
                 <asp:TemplateField HeaderText="录入时间" >
                    <itemtemplate>
               <asp:Label runat="server" Text='<%#  Convert.ToDateTime(Eval("InsertTime").ToString()).ToString("yyyy-MM-dd")%>'  CssClass="text_overflow"  ID="lblInsertTime"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
               <asp:TemplateField HeaderText="备注" >
                    <itemtemplate>
                <asp:Label runat="server"  ID="lblRemark" Text='<%# Eval("Remark")%>'  CssClass="text_overflow"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
                           
            </Columns>
        </yyc:SmartGridView>
        <webdiyer:AspNetPager ID="AspNetPager" CssClass="aspNetPager" ShowBoxThreshold="1"
            runat="server" HorizontalAlign="Right" PageSize="5" AlwaysShow="True" FirstPageText="首页"
            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" Width="98%" CustomInfoClass="aspNetPager"
            LayoutType="Div" PageIndexBoxType="TextBox" ShowPageIndexBox="Auto" OnPageChanged="AspNetPager_PageChanged">
        </webdiyer:AspNetPager>
  
    </contenttemplate> 
    </asp:UpdatePanel>

 

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="idFormButton" Runat="Server"> 
    <asp:Button ID="CloseButton" runat="server" Text="关闭" 
        OnClientClick="return closeForm();" />   
</asp:Content>
